import request from '@/utils/request'

// 人脸年龄变化
export function changeAgePic(data) {
  return request({
    url: '/txcloud/face/facechange/changeAgePic',
    method: 'post',
    data: data
  })
}

// 性别转换
export function swapGenderPic(data) {
  return request({
    url: '/txcloud/face/facechange/swapGenderPic',
    method: 'post',
    data: data
  })
}

// 人像动漫化
export function faceCartoonPic(data) {
  return request({
    url: '/txcloud/face/facechange/faceCartoonPic',
    method: 'post',
    data: data
  })
}

// 人像渐变
export function morphFace(data) {
  return request({
    url: '/txcloud/face/facechange/morphFace',
    method: 'post',
    data: data
  })
}

// 查询人像渐变任务
export function queryFaceMorphJob(jobId) {
  return request({
    url: '/txcloud/face/facechange/queryFaceMorphJob',
    method: 'get',
    params: {jobId}
  })
}

// 撤销人像渐变任务
export function cancelFaceMorphJob(jobId) {
  return request({
    url: '/txcloud/face/facechange/cancelFaceMorphJob',
    method: 'get',
    params: {jobId}

  })
}
